package com.service;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.entity.NewsColumn;
import com.repository.NewsColumnDao;
import com.service.base.BaseServiceImp;

@Service("newsColumnService")
public class newsColumnServiceImp extends BaseServiceImp<NewsColumn> implements newsColumnService{
	@Autowired
	private NewsColumnDao ndDao;
	
	@Override
	@Transactional
	public boolean insertprice(NewsColumn o) {
		NewsColumn uir=new NewsColumn();
		List<NewsColumn> users=ndDao.find(uir);
		if (users.size()>0) {
			return false;
		}
		return true;
	}

	@Override
	public List<NewsColumn> findColumnByClass(NewsColumn o) {
		return ndDao.findColumnByClass(o);
	}
	
}
